import request from '@/utils/request'
export function projectGeneralList(data) { //项目概述-列表
    return request({
        url: '/project-management/api/projectSurvey/page',
        method: 'POST',
        data,
    })
}
export function projectGeneralAdd(data) { //项目概述-添加
    return request({
        url: '/project-management/api/projectSurvey/save',
        method: 'POST',
        data,
    })
}
export function projectGeneralDetails(id) { //项目概述-详情
    return request({
        url: '/project-management/api/projectSurvey/'+id,
        method: 'GET',
    })
}
export function projectGeneralTeams() { //项目概述-项目组
    return request({
        url: '/sys-center/api/system/projectGroup',
        method: 'GET',
    })
}
//原 del
export function projectGeneralDeelete(data) { //项目概述-删除
    return request({
        url: '/project-management/api/projectSurvey/del/delete',
        method: 'post',
        data
    })
}
//原 put
export function projectGeneralEdit(data) { //项目概述-编辑
    return request({
        url: '/project-management/api/projectSurvey/put/update',
        method: 'post',
        data,
    })
}
export function projectGeneralExport(data) { //项目概述-导出
    return request({
        url: '/project-management/api/projectSurvey/export',
        responseType: 'arraybuffer',
        method: 'POST',
        data,
    })
}

export function projectGeneralOtherTree(id) { //项目概述-查询项目任务树
    return request({
        url: '/project-management/api/projectTaskTree/tree/'+id,
        method: 'GET',
    })
}
export function projectGeneralOtherTreeList(data) { //项目概述-项目任务树-查询子集
    return request({
        url: '/project-management/api/projectTaskTree/subset',
        method: 'POST',
        data
    })
}
export function projectGeneralOtherAdd(data) { //项目概述-项目任务树-新增
    return request({
        url: '/project-management/api/projectTaskTree/save',
        method: 'POST',
        data
    })
}
//原 put
export function projectGeneralOtherEdit(data) { //项目概述-项目任务树-修改
    return request({
        url: '/project-management/api/projectTaskTree/put/update',
        method: 'post',
        data
    })
}
export function projectGeneralOtherDetails(id) { //项目概述-项目任务树-查询详情
    return request({
        url: '/project-management/api/projectTaskTree/'+id,
        method: 'GET',
    })
}
//原 del 
export function projectGeneralOtherDelete(data) { //项目概述-项目任务树-删除
    return request({
        url: '/project-management/api/projectTaskTree/del/delete',
        method: 'post',
        data
    })
}

export function projectGeneralProcessList(data) { //项目概述-项目流程-默认查询
    return request({
        url: '/project-management/api/scheduleManagement/pro',
        method: 'post',
        data
    })
}

export function projectGeneralProcessAdd(data) { //项目概述-项目流程-添加
    return request({
        url: '/project-management/api/scheduleManagement/save',
        method: 'post',
        data
    })
}
//原 put
export function projectGeneralProcessEdit(data) { //项目概述-项目流程-修改
    return request({
        url: '/project-management/api/scheduleManagement/put/update',
        method: 'post',
        data
    })
}
export function projectGeneralProcessDetails(id) { //项目概述-项目流程-详情 
    return request({
        url: '/project-management/api/scheduleManagement/'+id,
        method: 'get',
    })
}
//原 del
export function projectGeneralProcessDelete(data) { //项目概述-项目流程-删除 
    return request({
        url: '/project-management/api/scheduleManagement/del/delete',
        method: 'post',
        data
    })
}
